package com.ld.collegetask.beans;

/**
 * Created by 樊海波 on 2017/9/23.
 */

public class MemberChargeBean {
    private Integer chargeId;
    private String chargeamount;
    private String chargetime;
    private String chargestatus;
    private String serialnumber;

    public String getSerialnumber() {
        return serialnumber;
    }

    public void setSerialnumber(String serialnumber) {
        this.serialnumber = serialnumber;
    }

    public Integer getChargeId() {
        return chargeId;
    }

    public void setChargeId(Integer chargeId) {
        this.chargeId = chargeId;
    }

    public String getChargeamount() {
        return "+" + chargeamount;
    }

    public void setChargeamount(String chargeamount) {
        this.chargeamount = chargeamount;
    }

    public String getChargetime() {
        return chargetime.split("\\.")[0];
    }

    public void setChargetime(String chargetime) {
        this.chargetime = chargetime;
    }

    public String getChargestatus() {
        return chargestatus;
    }

    public String getChargestatus_1() {
        String str;
        if (chargestatus.equals("1")) {
            str = "充值成功";
        } else {
            str = "充值失败";
        }
        return str;
    }

    public void setChargestatus(String chargestatus) {
        this.chargestatus = chargestatus;
    }
}
